<!DOCTYPE html>
<html>
<head>
    <include file="Public/head"/>
</head>

<body style="background:#fff;">
<div id="page">
    <header id="header">
        <div class="header_l"> <a class="ico_10" href="javascript:history.go(-1);"> 返回 </a> </div>
        <h1> 收货人信息 </h1>
    </header>
</div>
<div class="cart-step" id="J_cartTab">
    <ul>
        <li  class="cur" style="background:#f1f1f1">选择地址</li>
    </ul>
</div> 
<div class="wrap" style="margin-bottom:50px;">
    <volist name="lists" id="address">
        <section class="order_box padd1 radius10" style="padding-top:0;padding-bottom:0;">
            <div class="table_box2 table_box">
                <form style="padding:8px;" action="{:U('Order/confirm')}" method="post" name="theForm" id="theForm" onSubmit="return checkConsignee(this)">

                    <dl>
                        <dd class="dd1">收货人</dd>
                        <dd class="dd2">
                            <input name="name" type="text" class="inputBg" id="consignee_0" value="{$address.name}"  minlength="2" maxlength="15" required="required"/>
                            <span>*</span></dd>
                    </dl>
                    <dl>
                        <dd class="dd1">联系电话</dd>
                        <dd class="dd2">
                            <input name="mobile" type="text" class="inputBg"  id="tel_0" value="{$address.mobile}" minlength="8" maxlength="15"/>
                            <span>*</span></dd>
                    </dl>
                    <!--<dl>-->
                        <!--<dd class="dd1">电子邮箱</dd>-->
                        <!--<dd class="dd2">-->
                            <!--<input name="email" type="text" class="inputBg"  id="email_0" value="{$address.email}"  minlength="5" maxlength="25"/>-->
                            <!--<span>*</span></dd>-->
                    <!--</dl>-->
                    <dl>
                        <dd class="dd1">详细地址</dd>
                        <dd class="dd2">
                            <input name="address" type="text" class="inputBg"  id="address_0" value="{$address.address}" />
                            <span>*</span></dd>
                    </dl>
                    <dl style="border:none; padding-bottom:0;margin-top:10px; margin-bottom:10px;">
                        
                        <dd class="w40" style="width:80%; ">
                            <button type="button" class="c-btn3" name="button" onclick="if (confirm('您确定要删除该收货人信息吗？')) location.href='{:U('Order/address_del',array('id'=>$address['id']))}'"style="width:70px;float:right; height:28px; line-height:28px; background:#eeeeee; color:#797979;
                            border:1px solid #dfdfdf" >删除</button>
                            <button type="submit" class="c-btn3"  style="width:120px; float:right;height:28px; line-height:28px; margin-right:10px;background:#b41140;border:1px solid #b41140; color:#fff">配送至这个地址</button>
                        </dd>
                    </dl>
                    <input type="text"  hidden="hidden" name="address_id" value="{$address.id}">
                    <input type="text" hidden="hidden" name="cart_id" value="{:I('cart_ids','')}">
                </form>
            </div>
        </section>
        <div class="  height:50px;" ></div>
    </volist>
    <section class="order_box padd1 radius10" style="padding:0; border:0">
        <div style=" position:fixed; bottom:0; width:100%;">
            <a href="{:U('Address/edit',array('url'=>urlencode('__SELF__')))}" class="c-btn3" style="border-radius:0;"><strong>+</strong> 新增地址</a>
        </div>
    </section>



</div>








<div class="blank3"></div>
</body>
<script type="text/javascript">
    var process_request = "正在处理您的请求...";
    var username_empty = "用户名不能为空。";
    var username_shorter = "用户名长度不能少于 3 个字符。";
    var username_invalid = "用户名只能是由字母数字以及下划线组成。";
    var password_empty = "登录密码不能为空。";
    var password_shorter = "登录密码不能少于 6 个字符。";
    var confirm_password_invalid = "两次输入密码不一致";
    var email_empty = "Email 为空";
    var email_invalid = "Email 不是合法的地址";
    var agreement = "您没有接受协议";
    var msn_invalid = "msn地址不是一个有效的邮件地址";
    var qq_invalid = "QQ号码不是一个有效的号码";
    var home_phone_invalid = "家庭电话不是一个有效号码";
    var office_phone_invalid = "办公电话不是一个有效号码";
    var mobile_phone_invalid = "手机号码不是一个有效号码";
    var msg_un_blank = "* 用户名不能为空";
    var msg_un_length = "* 用户名最长不得超过7个汉字";
    var msg_un_format = "* 用户名含有非法字符";
    var msg_un_registered = "* 用户名已经存在,请重新输入";
    var msg_can_rg = "* 可以注册";
    var msg_email_blank = "* 邮件地址不能为空";
    var msg_email_registered = "* 邮箱已存在,请重新输入";
    var msg_email_format = "* 邮件地址不合法";
    var msg_blank = "不能为空";
    var no_select_question = "您没有完成密码提示问题的操作";
    var passwd_balnk = "密码中不能包含空格";
    var username_exist = "用户名 %s 已经存在";
    var compare_no_goods = "您没有选定任何需要比较的商品或者比较的商品数少于 2 个。";
    var btn_buy = "购买";
    var is_cancel = "取消";
    var select_spe = "请选择商品属性";
</script>
</html>
